package lab02.Test13;

/**
 * Created by Administrator on 2017/10/20.
 */
public class School extends ComputerAverage {
    //总分除以总科目；
    double sum = 0;

    @Override
    double average(double[] scores) {
        for (int i = 0; i < scores.length; i++) {
            sum = sum + scores[i];
        }
        return sum / scores.length;
    }
    School(){
        System.out.println("直接求平均分：总分除以总科目：");
    }
}
